package com.plug.entity;

import java.util.Date;

public class PlugBackupRecord {
    private Integer id;

    private String actionType;

    private String srcDatabase;

    private String srcTable;

    private String tgtDatabase;

    private Long  plugContrastId;

    private String tgtTable;

    private Integer fromNumber;

    private Integer toNumber;

    private Integer state;

    private Date createTime;

    private String message;

    public void setPlugContrastId(Long plugContrastId) {
        this.plugContrastId = plugContrastId==null?null:plugContrastId;
    }

    public Long getPlugContrastId() {
        return plugContrastId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id=id==null?null:id;

    }

    public String getActionType() {
        return actionType;
    }

    public void setActionType(String actionType) {

        this.actionType = actionType==null?null:actionType.trim();
    }

    public String getSrcDatabase() {
        return srcDatabase;
    }

    public void setSrcDatabase(String srcDatabase) {

        this.srcDatabase = srcDatabase==null?null:srcDatabase.trim();
    }

    public String getSrcTable() {
        return srcTable;
    }

    public void setSrcTable(String srcTable) {
        this.srcTable = srcTable==null?null:srcTable.trim();
    }

    public String getTgtDatabase() {
        return tgtDatabase;
    }

    public void setTgtDatabase(String tgtDatabase) {

        this.tgtDatabase = tgtDatabase==null?null:tgtDatabase.trim();
    }

    public String getTgtTable() {
        return tgtTable;
    }

    public void setTgtTable(String tgtTable) {

        this.tgtTable = tgtTable==null?null:tgtTable.trim();
    }

    public Integer getFromNumber() {
        return fromNumber;
    }

    public void setFromNumber(Integer fromNumber) {

        this.fromNumber = fromNumber==null?null:fromNumber;
    }

    public Integer getToNumber() {
        return toNumber;
    }

    public void setToNumber(Integer toNumber) {

        this.toNumber = toNumber==null?null:toNumber;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {

        this.state = state==null?null:state;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {

        this.createTime = createTime==null?new Date():createTime;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {

        this.message = message==null?null:message;
    }
}